<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">

<head>
    <th:block th:include="common/common_head :: commonHeader('询价单录入')"/>
    <link th:href="@{/static/css/plugins/cropper/cropper.min.css}" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <form class="form-horizontal" method="post" id="ssessForm">
        <div class="row">
            <div class="form-group">
                <div class="col-sm-8" style="margin-left: 16px">
                    <input class="btn btn-primary" type="button" onclick="save()" value="保存">
                    <button class="btn btn-primary" type="button" onclick="Dialog.closeFrame(window.name)">取 消</button>
                </div>
            </div>
	        <!-- 显示 隐藏测试 -->
			<ul id="myTab" class="nav nav-tabs">
				<li class="active">
					<a href="#basicinformation" linkTab="basicinformation" isActive="true" data-toggle="tab"> 基础信息</a>
				</li>
			</ul>
			
			<!-- 基本信息 -->
	        <div id="basicinformation">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<div class="form-group">
						    <label class="col-xs-1 control-label"><span class="required-sign">*</span>供应商编码：</label>
						    <div class="col-xs-3">
						        <input id="vendorCode" name="vendorCode" type="text" class="form-control">
						    </div>
						    <label class="col-xs-1 control-label">供应商名称：</label>
						    <div class="col-xs-3">
						    	<input class="form-control" id="vendorName" name="vendorName"></input>
						    </div>
						    <div class="form-group">
						    <label class="col-xs-1 control-label">价格分数：</label>
						    <div class="col-xs-3">
						    	<input class="form-control" id="priceMark" name="priceMark"></input>
						    </div>
						    </div>
						</div>
						<div class="form-group">
						    <label class="col-sm-1 control-label"><span class="required-sign">*</span>交期评分：</label>
						    <div class="col-sm-3">
						        <input class="form-control required" id="deliveryTimeMark" name="deliveryTimeMark"></input>
						    </div>
						    <label class="col-sm-1 control-label">品质评分：</label>
						    <div class="col-sm-3">
						        <input class="form-control" name="qualityMark" type="text"></input>
						    </div>
						    <label class="col-sm-1 control-label">服务评分：</label>
						    <div class="col-sm-3">
						        <input class="form-control" name="serviceMark"></input>
						    </div>
						</div>
						<div class="form-group">
						    <label class="col-sm-1 control-label">加权：</label>
						    <div class="col-sm-3">
						        <input class="form-control" name="weight" type="text"></input>
						    </div>
						    <label class="col-sm-1 control-label">备注：</label>
						    <div class="col-sm-3">
						        <input class="form-control" name="remark" type="text"></input>
						    </div>
						</div>
					</div>
				</div>
	        </div>
		</div>
   </form>
</div>
<!--引入公共js-->
<div th:include="common/onload_js :: onloadJS"></div>
<!-- Chosen -->
<script th:src="@{/static/js/plugins/chosen/chosen.jquery.js}"></script>
<script type="text/javascript">
//保存
function save() {
    if($("#ssessForm").valid()) {
        Page.ajaxPOST(ctxPath + "/ssess/saveBasic", $('#ssessForm').serialize(), function(res) {
	        Dialog.msg("新增成功!", function() {
		        parent.refresh();
		        Dialog.closeFrame(window.name);
	        });
        });
    }
}
</script>

</body>
</html>
